<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('终端推送')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-migrate-update" enctype="multipart/form-data">
            <input name="id" th:value="${id}" type="hidden">
            <h4 class="form-header h4">商户信息</h4>
            <div class="row">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">商户编号：</label>
                    <div class="col-sm-8">
                        <input name="merNo"  readonly  type="text" class="form-control" th:value="${merchantInfo.get('MERNO')}" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">商户名称：</label>
                    <div class="col-sm-8">
                        <input name="merName"  readonly  type="text" class="form-control" th:value="${merchantInfo.get('MER_NAME')}" required>
                    </div>
                </div>
            </div>
            <h4 class="form-header h4">终端信息</h4>
            <div class="row">
                <div class="form-group">
                    <label class="col-sm-3 control-label  is-required">SN编号：</label>
                    <div class="col-sm-8">
                        <input name="sn"   type="text" class="form-control"  required>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "terminal/record"
        var merPrefix = ctx + "merchantInfo/merchantInfo"
        $("#form-record-add").validate({
            focusCleanup: true

        });
        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(merPrefix + "/savePushPos", $('#form-migrate-update').serialize());
            }
        }
        function selectAgent() {
            var url =prefix+ "/selectAgentInfoAll";
            $.modal.open("选择服务商" , url, '900',"500");
        }
    </script>
</body>
</html>
